package com.j180.demo.service.classes.impl;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.j180.demo.bean.ClassBean;
import com.j180.demo.dao.classes.IClassDao;
import com.j180.demo.service.classes.IClassesService;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;

@Service
public class ClassesServiceImpl extends ServiceImpl<IClassDao, ClassBean> implements IClassesService {
     @Resource
    private IClassDao iClassDao;

    @Override
    public ClassBean showClassInfoDetail(Integer classId) {

        return iClassDao.selectById(classId);
    }

    @Override
    public List<ClassBean> showAllClasses() {

        return iClassDao.selectList(null);
    }


}
